import request from '@/utils/request'

// 查询店铺数据列表
export function listSocialShop(query) {
  return request({
    url: '/social/SocialShop/list',
    method: 'get',
    params: query
  })
}

// 查询店铺数据详细
export function getSocialShop(id) {
  return request({
    url: '/social/SocialShop/' + id,
    method: 'get'
  })
}

// 新增店铺数据
export function addSocialShop(data) {
  return request({
    url: '/social/SocialShop',
    method: 'post',
    data: data
  })
}

// 修改店铺数据
export function updateSocialShop(data) {
  return request({
    url: '/social/SocialShop',
    method: 'put',
    data: data
  })
}

// 删除店铺数据
export function delSocialShop(id) {
  return request({
    url: '/social/SocialShop/' + id,
    method: 'delete'
  })
}
